package com.mercury.ec.module.air.controller.admin.demandorder.vo.demandroutesegment;

import lombok.*;

import java.time.LocalDate;

import io.swagger.v3.oas.annotations.media.Schema;
import com.mercury.ec.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.mercury.ec.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 机票需求订单方案行程航段分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AirDemandRouteSegmentPageReqVO extends PageParam {

    @Schema(description = "需求订单id", example = "23189")
    private Long demandId;

    @Schema(description = "方案id", example = "23288")
    private Long demandSchemeId;

    @Schema(description = "行程id", example = "23615")
    private Long demandRouteId;

    @Schema(description = "序号")
    private Integer serialNo;

    @Schema(description = "航司代码")
    private String airlineNo;

    @Schema(description = "航班号")
    private String flightNo;

    @Schema(description = "舱位")
    private String cabin;

    @Schema(description = "出发机场三字码")
    private String depart;

    @Schema(description = "抵达机场三字码")
    private String arrive;

    @Schema(description = "航班日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] flightDate;

    @Schema(description = "抵达日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] arriveDate;

    @Schema(description = "出发时间(HH:mm)")
    private String departTime;

    @Schema(description = "抵达时间(HH:mm)")
    private String arriveTime;

    @Schema(description = "出发航站楼")
    private String departTerminal;

    @Schema(description = "抵达航站楼")
    private String arriveTerminal;

    @Schema(description = "机型")
    private String airModel;

    @Schema(description = "是否经停")
    private Boolean stop;

    @Schema(description = "经停机场三字码")
    private String stopAirportNo;

    @Schema(description = "经停航站楼")
    private String stopTerminal;

    @Schema(description = "是否共享航班")
    private Boolean share;

    @Schema(description = "行李额")
    private String baggageWeight;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
